import React from 'react'
export default class App extends React.Component {
    constructor(props) {
        super(props)
        console.log('props',props)
        this.state = {
            content: ''
        }
    }

    click1=()=>{
        this.props.getMsg('6666666')
    }

 
    render() {
        return (
            <div>
                <h1>我是app3的子组件</h1>
                <button onClick={this.click1}>子组件button 点击子传父</button>
            </div>
        )

    }
}